package com.bf.electroplating.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;

/**
 * 设备关联信息VO
 *
 * @author gzd
 * @since 2025-01-15
 */
@Data
@Schema(description = "设备关联信息VO")
public class DeviceRelationVO {

    @Schema(description = "车间名称")
    private String workshopName;

    @Schema(description = "监测点名称")
    private String monitoringPointName;

    @Schema(description = "设备列表")
    private List<DeviceVO> deviceList;

    @Data
    @Schema(description = "设备信息VO")
    public static class DeviceVO {
        @Schema(description = "设备ID")
        private Integer id;

        @Schema(description = "设备名称")
        private String deviceName;

        @Schema(description = "治理站点列表")
        private List<GovernanceSiteVO> governanceSiteVOList;
    }

    @Data
    @Schema(description = "治理站点信息VO")
    public static class GovernanceSiteVO {
        @Schema(description = "治理ID")
        private Integer governanceId;

        @Schema(description = "治理站点名称")
        private String governanceSiteName;

        @Schema(description = "主备设备类型 1:主设备  2:备用设备")
        private Integer hostStandbyType;
    }
}
